package com.example.demo1105.demo3;

import java.lang.reflect.ParameterizedType;
import java.util.SortedMap;
import java.util.stream.Stream;
/**
 * @Author: FBS
 * @Description: TODO
 * @DateTime: 2022/11/6 20:34
 *@Version:1.0
 */
public class TestThree01 {
    public static void main(String[] args) {
        String[] arr1={"a","b","f","d"};
        String[] arr2={"e","f","g","h"};
        Stream<String> stream1 = Stream.of(arr1);
        Stream<String> stream2 = Stream.of(arr2);
        //Stream.concat(stream1,stream2).forEach(System.out::println);

        //Stream.concat(stream1,stream2).distinct().forEach(System.out::println);

        //Stream.concat(stream1,stream2).limit(6).forEach(System.out::println);

        Stream.concat(stream1,stream2).skip(3).forEach(System.out::println);




    }
}
